// Default Compositor
// (c) jimon game studio

#include "CDefaultCompositor.h"
#include "ISceneManager.h"

namespace je
{
	namespace scene
	{
		//! Constructor
		CDefaultCompositor::CDefaultCompositor(ISceneManager * SceneManager)
			:ICompositor(SceneManager,"DefaultCompositor")
		{
		}

		//! Destructor
		CDefaultCompositor::~CDefaultCompositor()
		{
		}

		//! On Render
		void CDefaultCompositor::OnRender()
		{
			CurrentSceneManager->GetCurrentCamera()->ApplyTransforms();
			CurrentSceneManager->RenderQueueGroups();

			ICompositor::OnRender();
		}

		//! Serialize
		void CDefaultCompositor::Serialize(core::ISerializeStream * SerializeStream)
		{
			ICompositor::Serialize(SerializeStream);
		}
	}
}
